eventInstance<%@ page import="ar.com.photo_admin.domain.Event" %>

<%--

<div class="fieldcontain ${hasErrors(bean: eventInstance, field: 'albums', 'error')} ">
	<label for="albums">
		<g:message code="event.albums.label" default="Albums" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${eventInstance?.albums?}" var="a">
    <li><g:link controller="album" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="album" action="create" params="['event.id': eventInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'album.label', default: 'Album')])}</g:link>
</li>
</ul>

</div> --%>

<%-- Aca se va a agregar info relativa al usuario. --%>

<div class="fieldcontain ${hasErrors(bean: eventInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="event.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${eventInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventInstance, field: 'eventDate', 'error')} required">
	<label for="eventDate">
		<g:message code="event.eventDate.label" default="Event Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="eventDate" precision="day"  value="${eventInstance?.eventDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventInstance, field: 'users', 'error')} ">
	<label for="users">
		<g:message code="event.users.label" default="Users" />
		
	</label>
	
</div>

